<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Андрей
 * Date: 11.05.12
 * Time: 18:02
 * To change this template use File | Settings | File Templates.
 */

    /*
     * Фабрика контроллеров
     */
    class ControllerFabric
    {
        public static function getController($name,$view,$args)
        {
            $name = $name . 'Controller';
            $controller = new $name;
            $controller->setView($view)
                       ->setArgs($args);
            return $controller;
        }
    }
